/*
 * 泛型方法
 */

public class GenericDemo7 {
    public static void main(String[] args) {
        String strArr[] = {"www", "124", "com"};
        tell(strArr);
        Integer intArr[] = {123, 345, 678};
        tell(intArr);
    }

    public static <T> void tell(T arr[]) {
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
